<?php

include_once 'lib/Cat/autoload.php';

mb_internal_encoding( 'UTF-8' );
ob_start();
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );

$crawl = new Cat_Crawler_Std();

//$crawl->addProcessor( new Cat_Processor_Php() );

$crawl->setParam( 'output.path', dirname( LIB_BASE_DIR ) . '/output' );
$crawl->setParam( 'input.path', dirname( LIB_BASE_DIR ) . '/input' );
$crawl->setParam( 'input.extension', '.php' );

$monkey = new Cat_Processor_Monkey();
$monkey->addTagHandler( new Cat_Processor_Monkey_TagHandler_FromPackage( 'Cat_Tags_' ) );

$crawl->addProcessor( $monkey );

$cat = new Cat_Compiler();
$cat->addCrawler( $crawl );

$cat->compile();

?>
